package com.feicheng.persistence.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feicheng.persistence.entity.Client;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;


import com.feicheng.persistence.model.ClientMain;
import org.apache.ibatis.annotations.Param;


import java.sql.Wrapper;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */

public interface ClientMapper extends BaseMapper<Client> {
    Page<ClientMain> getClientsByPage(Page<ClientMain> page, @Param(Constants.WRAPPER) QueryWrapper<ClientMain> wrapper);

    List<ClientMain> getClientById(@Param(Constants.WRAPPER) QueryWrapper<ClientMain> queryWrapper);
    List<ClientMain> clientVipDetails(@Param(Constants.WRAPPER) QueryWrapper<ClientMain> queryWrapper);
    List<ClientMain> clientDepositDetails(@Param(Constants.WRAPPER) QueryWrapper<ClientMain> queryWrapper);
    List<ClientMain> clientOrderDetails(@Param(Constants.WRAPPER) QueryWrapper<ClientMain> queryWrapper);
}
